package org.smarthings.things.management.rest.resources;

import java.net.URI;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.smarthings.things.commons.rest.BasicResource;

@XmlType(name = "thingSubscription")
@XmlRootElement(name = "thingSubscription")
public class ThingEventSubscriptionResource extends BasicResource {

	private String filter;
	private URI callback;

	@XmlElement(name = "filter", required = false)
	public String getFilter() {
		return filter;
	}

	public void setFilter(String filter) {
		this.filter = filter;
	}

	@XmlElement(name = "callback", required = true)
	public URI getCallback() {
		return callback;
	}

	public void setCallback(URI callback) {
		this.callback = callback;
	}

}
